<?php namespace app\Classes\BuilderTest;

class benziBuilder extends carBuilder{
    private $benziModel;

    public function __construct(){
        $this->benziModel = new benziCarModel();
    }

    public function setSpareParts($partsName , $xinghao){
        $this->benziModel->spareParts[$partsName] = $xinghao;
    }

    public function getCarModel($name){
        $this->benziModel->getCar($name);
    }
}